-- GENERATED SPELL FOR [Large Crag Boar] --


function spell0_1126(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_1126', 3000, 1)
end

function Sorts_1126(pUnit, Event)
local choix_sorts_1126 = math.random(0, 0)
if choix_sorts_1126 == 0 then
pUnit:RegisterEvent('spell0_1126', 1, 1)
end
end

function mob1126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1126', math.random(1500, 3000), 1)
end

function mob1126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1126, 1, 'mob1126_Action')
RegisterUnitEvent(1126, 2, 'mob1126_Leave')
RegisterUnitEvent(1126, 3, 'mob1126_Kill')
RegisterUnitEvent(1126, 4, 'mob1126_Die')
